﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="Repeater.aspx.cs" Inherits="admin_Repeater" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Repeater ID="Repeater1" runat="server" > 
<HeaderTemplate>
        <table cellspacing="0" cellpadding="0" border="0"><!-- Table -->
					<thead>
						<tr>							
							<th>Mã Tin Tức</th>
							<th>Tiêu Đề</th>
							<th>Mô Tả</th>
							<th>Chi Tiết</th>
							<th>Ngày Đăng</th>
							<th>Hình Ảnh</th>							
						</tr>
					</thead>
				
					<tbody>
        </HeaderTemplate>
        <ItemTemplate>
        <tr>							
							<td><asp:HyperLink ID="hplMaTT" runat="server" NavigateUrl='<%# "~/ThemTinTuc.aspx?matintuc=" + DataBinder.Eval(Container.DataItem,"matintuc")%>' Text='<%# DataBinder.Eval(Container.DataItem,"matintuc")%>' /></td>
							<td><%#Eval("tieude")%></td>
							<td><%#Eval("mota")%></td>
							<td><%#Eval("chitiet")%></td>
							<td><%#Eval("ngaydang")%></td>
							<td><%#Eval("hinhanh")%></td>
							<td><asp:ImageButton ID="imagebtxoa" runat="server" CommandArgument='dk' CommandName="Xoa" OnClientClick='return isconfirm()'
            ImageUrl="images/action_remove.png" /><a href="SuaTinTuc.aspx?matintuc=<%#Eval("matintuc")%>"><img src="images/action_check.png" alt="Check" /></a></td>
						</tr>
        </ItemTemplate>
     
        <FooterTemplate>
           </tbody>
        </table>
        </FooterTemplate> 
</asp:Repeater>
</asp:Content>

